package com.woniuxy.user.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/11 0011-下午 11:23
 */
@Configuration
public class RuleConfig {
    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
